﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace Twodi.Interfaces
{
    /// <summary>
    /// Define um componente que possui textura.
    /// </summary>
    public interface ITexture : ITexture2D
    {
        /// <summary>
        /// Alpha color a ser usada durante o Draw.
        /// </summary>
        Color AlphaColor
        {
            get;
            set;
        }

        /// <summary>
        /// Retangulo de Source da Textura.
        /// </summary>
        Rectangle? Source
        {
            get;
            set;
        }

        /// <summary>
        /// Evento invocado caso alpha color for alterada.
        /// </summary>
        event EventHandler<EventArgs> AlphaColorChanged;

        /// <summary>
        /// Evento invocado caso o source for alterado.
        /// </summary>
        event EventHandler<EventArgs> SourceChanged;
    }
}
